import React, { memo, useEffect, useState } from "react"

const App = memo(() => {
    const [count, setCount] = useState(1)
    useEffect(() => {
        // 发送网络请求

        return () => {}
    })

    useEffect(() => {
        // 监听redux
        return () => {}
    })

    // 一个函数式组件中，可以存在多个useEffect

    return (
        <div>
            <button onClick={(e) => setCount(count + 1)}>+1({count})</button>
        </div>
    )
})

export default App
